package com.corgi.test.easymapper;

import com.baidu.unbiz.easymapper.MapperFactory;

/**
 * Mapper
 *
 * @title: Mapper
 * @description:
 * @author: dengmiao
 * @create: 2020-01-15 11:22
 **/
public class Mapper implements IMapper {

    @Override
    public <O, T> T map(O paramO, Class<T> paramClass) {
        return MapperFactory.getCopyByRefMapper().map(paramO, paramClass);
    }

    @Override
    public <O, T> T map(O paramO, T paramT) {
        return MapperFactory.getCopyByRefMapper().map(paramO, paramT);
    }

    @Override
    public <A, B> void register(Class<A> paramClass, Class<B> paramClass1) {
        MapperFactory.getCopyByRefMapper().mapClass(paramClass, paramClass1).register();
    }

    @Override
    public <A, B> void register(Class<A> paramClass, Class<B> paramClass1, String[] paramArrayOfString) {
        MapperFactory.getCopyByRefMapper().mapClass(paramClass, paramClass1).exclude(paramArrayOfString).register();
    }
}
